﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Minecraft.Model
{
	public partial class FurnitureModel
	{
		/// <summary>
		/// 家具坐标点
		/// </summary>
		public Point3 point3
		{
			get
			{
				return new Point3
				{
					x = Point_X,
					y = Point_Y,
					z = Point_Z
				};
			}
		}
		/// <summary>
		/// 家具类型
		/// </summary>
		public EnumFurnitureType enumFurnitureType
		{
			get
			{
				return (EnumFurnitureType)FurnitureTypeId;
			}
		}
		/// <summary>
		/// 是否处于升级中
		/// </summary>
		public bool Upgrade_State_Convert
		{
			get
			{
				return Upgrade_State == 1 ? true : false;
			}
		}
		/// <summary>
		/// 是否处于修理中
		/// </summary>
		public bool Repair_State_Convert
		{
			get
			{
				return Repair_State == 1 ? true : false;
			}
		}
		/// <summary>
		/// 家具id（整型）
		/// </summary>
		public int FurnitureId_Convert
		{
			get
			{
				return int.Parse(FurnitureId);
			}
		}
		/// <summary>
		/// （针对宝箱）该宝箱是否是预制还是随机（true表示预制，false表示随机）
		/// </summary>
		public bool TreasureBox_IsPrefab_Convert
		{
			get
			{
				return TreasureBox_IsPrefab == 1 ? true : false;
			}
		}
		/// <summary>
		/// 宝箱是否生成（1：生成，0：没有生成）
		/// </summary>
		public bool TreasureBox_IsGenerate_Convert
		{
			get
			{
				return TreasureBox_IsGenerate == 1 ? true : false;
			}
		}
		/// <summary>
		/// 是否打开（1：打开，0：没有打开）
		/// </summary>
		public bool TTreasureBox_IsOpen_Convert
		{
			get
			{
				return TreasureBox_IsOpen == 1 ? true : false;
			}
		}
	}
}
